<template>
  <div>
    <button v-for="tab in tabs" :key="tab">{{tab}}</button>
  </div>
  <div v-if="currentTab === 'volar测试'">
    {{volarModel}}
    <VolarTsc :text="'prop text'" v-model:foo="volarModel" @click-text="volarClickEvent"/>
  </div>

</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import VolarTsc from './components/VolarTsc.vue'

export default defineComponent({
  name: 'App',
  components: {
    VolarTsc
  },
  setup() {
    const currentTab= ref('volar测试');
    const tabs = ref(['volar测试']);

    function volarClickEvent() {
      console.log('volarClickEvent');
    }

    const volarModel = ref(0);

    return {
      tabs,
      currentTab,
      volarClickEvent,
      volarModel
    };
  }
})
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
